<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'A protective case',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<img src="/img/CC_BY-SA_4.0/y.st./weblog/2018/12/16.jpg" alt="Shrubberies along the road" class="framed-centred-image" width="649" height="480"/>
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			I&apos;m confused as to why you say that JavaScript is more portable than $a[PHP].
			$a[PHP] can be run on most if not all server configurations.
			As for JavaScript, again, it works on most but <strong>*not*</strong> all modern Web browsers.
			For example, many browsers built for disabled people don&apos;t work well with JavaScript.
			Screen readers for the blind often ignore JavaScript.
		</p>
		<p>
			You make a good point that JavaScript doesn&apos;t really include file-access mechanisms.
			For security reasons, the Web browser cannot allow JavaScript to access the filesystem.
			This is something I overlooked in my own post.
			Meanwhile, $a[PHP] has full access to the filesystem; or at least, it&apos;s able to access the parts not protected by the file system&apos;s permission system.
			Not all filesystems include such protections, but many Linux filesystems do.
		</p>
		<p>
			You also make a good point that this university&apos;s website uses both $a[PHP] and JavaScript.
			For many Web developers, no choice between the two is made.
			Instead, each is used to perform different functions.
		</p>
	</blockquote>
</section>
<section id="case">
	<h2>Glasses case</h2>
	<p>
		I&apos;ve been going back and forth about buying a new or used glasses case.
		I&apos;m going to need one when I get glasses, which if I&apos;m lucky, will be within the next few days.
		I know the right thing to do is get a used one.
		I&apos;d be easier on the planet.
		However, I&apos;ve been reluctant to go with that option, as I&apos;ve been wanting one that&apos;s new and clean.
		My glasses will be a very personal item, and I want somewhere clean to store and protect them when I throw them into my bag.
		I finally talked myself into getting a used case.
		I can&apos;t get used glasses, as they wouldn&apos;t be the right prescription, but I can at least get the case used.
		I wanted to get the case before the glasses too, so if I don&apos;t wear them while biking, I&apos;ll be able to safely transport them home.
	</p>
	<p>
		Much to my surprise, the used glasses cases at the second-hand store all seemed to be very well-cared for, at least on the inside.
		I don&apos;t know what I was thinking.
		The cases usually stay closed, and their previous owners would have wanted somewhere clean and nice to store their spectacles as well.
		Of course these things would probably meet my expectations.
		There were several available to choose from, but only two had no logos or brands on them.
		Of those, one was so tiny and built to fit snug to the glasses that I wouldn&apos;t dare buy it without already having glasses in hand to see if the case would fit around them.
		So that left me with the one I chose.
		The case is a bit worn on the outside, but I actually like it better that way.
		It means I won&apos;t get frustrated if I accidentally scuff it, like I would if that scuff were to add a blemish to a brand new, perfect case.
	</p>
</section>
END
);
